<?php

/**
 * 就业方向模型
 * @date 2014/01/11
 * @author 马燕龙
 */
class EmployModel extends RelationModel
{

    //自动验证
    protected $_validate = array(
        array('grade_id', 'require', '班级必须！'),
        array('name', 'require', '姓名必须！'),
        array('age', 'require', '年龄必须！'),
        array('address', 'require', '籍贯必须！'),
        array('education', 'require', '学历必须！'),
        array('graduate', 'require', '毕业院校必须！'),
        array('graduateadd', 'require', '院校所在省必须！'),
        array('subject', 'require', '专业必须！'),
        array('method', 'require', '就业方式必须！'),
        array('area_id', 'require', '就业地域必须！'),
        array('position', 'require', '就业职位必须！'),
        array('pay', 'require', '期望薪资必须！'),

    );
    //测试关联模型
    protected $_link = array(
        'Grade' => array(
            'mapping_type' => BELONGS_TO,
            'class_name' => 'Grade',
            'mapping_name' => 'grade',
            'foreign_key' => 'grade_id',
            'mapping_fields' => array('id', 'name'),
            'as_fields' => 'name:grade_name',
        ),
    );

    //学历
    public $education = array(
        '' => '--请选择--',
        1 => '高中及以下',
        2 => '大专',
        3 => '本科及以上',
    );

    //就业方式
    public $method = array(
        '' => '--请选择--',
        1 => '推荐就业',
        2 => '自主就业',
        3 => '创业',
        4 => '回原单位',
    );

    //就业职位
    public $position = array(
        '' => '--请选择--',
        1 => 'PHP程序员',
        2 => '产品助理',
        3 => '技术支持',
        4 => '技术销售',
        5 => '兄弟连讲师',
        6 => '兄弟连项目经理',
        7 => '兄弟连班主任',
    );
    //就业职位
    public $uiPosition = array(
        '' => '--请选择--',
        1 => '美工',
        2 => '网页设计',
        3 => 'UI设计',
        4 => '平面设计',
        5 => '产品经理',
    );
    //h5就业职位
    public $h5Position = array(
        '' => '--请选择--',
        1 => '前端工程师',
    );
    //java就业职位
    public $javaPosition = array(
        '' => '--请选择--',
        1 => 'java开发工程师',
    );

    //期望薪资
    public $pay = array(
        '' => '--请选择--',
        1 => '2500及以下',
        2 => '3000-4000',
        3 => '4000-5000',
        4 => '5000-6000',
        5 => '6000-7000',
        6 => '7000以上'
    );

    //专业等级
    public $leval = array(
        '' => '--请选择--',
        1 => '精通',
        2 => '熟练掌握',
        3 => '掌握',
        4 => '熟悉',
        5 => '了解',
    );
    //专业技能
    public $type = [
        1 => [
            ['name' => 'phpjunior', 'display' => 'PHP初级'],
            ['name' => 'phpsenior', 'display' => 'PHP高级'],
            ['name' => 'mysql', 'display' => 'MySQL'],
            ['name' => 'js', 'display' => 'Js/jQuery'],
            ['name' => 'linux', 'display' => 'Linux'],
        ],
        2 => [
            ['name' => 'software', 'display' => '软件基础'],
            ['name' => 'sketch', 'display' => '商业素描'],
            ['name' => 'html5', 'display' => 'HTML5'],
            ['name' => 'webui', 'display' => 'WEB页面设计'],
            ['name' => 'moveui', 'display' => '移动端界面设计'],
            ['name' => 'product', 'display' => '产品设计'],
            ['name' => 'interactive', 'display' => '交互设计'],
            ['name' => 'ue', 'display' => '用户体验设计'],
            ['name' => 'plane', 'display' => '高级平面设计'],
        ],
        3 => [
            ['name' => 's1', 'display' => 'H5+CSS'],
            ['name' => 's2', 'display' => '网页设计'],
            ['name' => 's3', 'display' => 'JS'],
            ['name' => 's4', 'display' => 'PHP后台'],
            ['name' => 's5', 'display' => '高级开发'],
            ['name' => 's6', 'display' => '微信接口'],
        ],
        4 => [
            ['name' => 'se', 'display' => 'java se'],
            ['name' => 'mysql', 'display' => 'mysql'],
            ['name' => 'javaweb', 'display' => 'java web'],
            ['name' => 'hadoop', 'display' => 'hadoop'],
            ['name' => 'scala', 'display' => 'scala'],
            ['name' => 'spark', 'display' => 'spark'],
        ]
    ];


}